﻿using System;
using System.Collections;
using UnityEngine;
using XLua;

[CSharpCallLua]
public class ViewModeUpdate : ViewMode
{
    private Action LuaUpdate; //生命周期方法

    protected override void GetLuaFunction()
    {
        base.GetLuaFunction();
        LuaUpdate = scriptEnv.Get<Action>("Update");
    }

    private void Update() => LuaUpdate?.Invoke();
}